Developer Documentation
PATH  Mac OS X Documentation > Cocoa > Application Design for Scripting, Documents, and Undo


Previous | Chapter contents | Next | Book PDF

Model-View-Controller

The Model-View-Controller pattern is quite old. It has been around at least since the early days of Smalltalk. It is a high-level pattern in that it concerns itself with the global architecture of a program and tries to provide a classification of the different kinds of objects that make up an application.

According to the pattern, there are three types of objects: model objects, view objects, and controller objects. The pattern defines the roles that these types of objects play in the application; as a developer, you design your classes to fall into these three groups.

Model Objects Represent Data and Basic Behaviors

View Objects Present Information to the User

Controller Objects Tie the Model to the View

Why Is MVC Important?


Application Design for Scripting, Documents, and Undo

Previous | Chapter contents | Next | Book PDF